add = lambda x, y: x + y
print(add(3, 5))



fun = [(lambda n : i + n) for i in range(10)]
print (fun[3](4))
print (fun[4](4))


fun = [(lambda n,i = i : i + n) for i in range(10)]
print (fun[3](4))
print (fun[4](4))